<script type="text/javascript" src="${basePath}/js/tds-operationlog.js"></script>
<#include "/component/pagination.html" />
<table class="table table-striped table-hover">
	<thead>
		<tr>
			<th width="12%" scope="col"><@spring.message code='log.name'/></th>
			<th width="12%" scope="col"><@spring.message code='log.account'/></th>
			<th width="12%" scope="col"><@spring.message code='log.description'/></th>
			<th width="12%" scope="col"><@spring.message code='log.dangerLevel'/></th>
			<th width="12%" scope="col"><@spring.message code='log.operationResult'/></th>
			<th width="12%" scope="col"><@spring.message code='log.ip'/></th>
			<th width="28%" scope="col"><@spring.message code='log.create_time'/></th>
		</tr>
	</thead>
	<tbody>
		<#list pager.list as item>
		<tr  
			<#if ((item_index+1) % 2 == 0) >class="oddrow"</#if> >
			<td>${item.name}</td>
			<td>${item.username}</td>
	        <td>${item.description}</td>
	        <td>
	        	<#if item.dangerLevel == 1>
	        		<@spring.message code='log.low'/>
	        	<#elseif item.dangerLevel == 2>
	        		<@spring.message code='log.middle'/>
	        	<#else>
	        		<@spring.message code='log.high'/>
	        	</#if>
	        </td>
	        <td>
	        	<#if item.result == 0>
	        		<@spring.message code='log.fail'/>
	        	<#else>
	        		<@spring.message code='log.success'/>
	        	</#if>
	        </td>
	        <td>${item.ip}</td>
	        <td>${item.createTime?string('yyyy-MM-dd HH:mm:ss')}</td>
	    </tr>
		</#list>
	</tbody>
</table>
<@pagination/>
